﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="ImageEditFull.ascx.cs"
    Inherits="Micronet.OpenWeb.OpenWeb.Admin.Views.Shared.ImageEditFull" %>
<owc:owdetailsview runat="server" id="ImageEditFullDv" autogeneraterows="False" datasourceid="ImageEditFullOds"
    enablemodelvalidation="True" ownotificationid="">
    <Fields>    
    <asp:TemplateField runat="server" ShowHeader="false">
    <InsertItemTemplate>
    <fieldset>
                    <legend><span>
                        <asp:Localize ID="Localize7" Text="<%$ OwR:InfoLabel %>" runat="server"></asp:Localize>
                    </span></legend>
        <table width="100%">
            <tr>
                <td class="leftcolumn">Thông tin chung</td>
                <td><owac:OwDetailCommonGroup runat="server" /></td>
            </tr>
            <tr>
                <td class="leftcolumn"><owc:OwR runat="server" OwText="Name" /></td>
                <td>
                    <owc:OwTextBox runat="server" Text='<%#Bind("Name") %>' ID="ImageName"/>
                </td>
            </tr>
            <tr>
                <td class="leftcolumn"><owc:OwR runat="server" OwText="Link" /></td>
                <td>
                    <owc:OwImageEditor runat="server" ImageUrl='<%#Bind("Link") %>' ID="ImageLink"/>
                </td>
            </tr>
            <tr>
                <td class="leftcolumn"><owc:OwR runat="server" OwText="Size" /></td>
                <td><owc:OwTextBox runat="server" Text='<%#Bind("Size") %>' ID="ImageSize"/></td>
            </tr>
            <tr>
                <td class="leftcolumn"><owc:OwR runat="server" OwText="Price" /></td>
                <td><owc:OwTextBox runat="server" Text='<%#Bind("Price") %>' ID="ImagePrice"/></td>
            </tr>
            <tr>
                <td class="leftcolumn"><owc:OwR runat="server" OwText="Material" /></td>
                <td>
                    <owc:OwComboBox runat="server" ID="ImageMaterial"/>
                </td>
            </tr>
            <tr>
                <td class="leftcolumn"><owc:OwR runat="server" OwText="DateTimeProdured" /></td>
                <td>
                    <owc:OwDateTimePicker runat="server" SelectedDate='<%#Bind("DateTimeProdured") %>' ID="ImageDateTimeProdured"/>
                </td>
            </tr>
            <tr>
                <td class="leftcolumn"><owc:OwR runat="server" OwText="Code" /></td>
                <td><owc:OwTextBox runat="server" ID="ImageCode" Text='<%#Bind("Code") %>'/></td>
            </tr>
            <tr>
                <td class="leftcolumn"><owc:OwR runat="server" OwText="ThumbImage" /></td>
                <td></td>
            </tr>
            <tr>
                <td class="leftcolumn"><owc:OwR runat="server" OwText="Description" /></td>
                <td><owc:OwEditor runat="server" Content='<%#Bind("Description") %>' ID="ImageDescription"/></td>
            </tr><tr>
                <td class="leftcolumn"><owc:OwR runat="server" OwText="SortOrder" /></td>
                <td><owc:OwTextBox runat="server" ID="ImageSortOrder" Text='<%#Bind("SortOrder") %>'/></td>
            </tr><tr>
                <td class="leftcolumn"><owc:OwR runat="server" OwText="Tags" /></td>
                <td><owc:OwTagField runat="server"/></td>
            </tr><tr>
                <td class="leftcolumn"><owc:OwR runat="server" OwText="IsHot" /></td>
                <td><owc:OwCheckBox runat="server"/></td>
            </tr><tr>
                <td class="leftcolumn"><owc:OwR runat="server" OwText="IsApproved" /></td>
                <td></td>
            </tr><tr>
                <td class="leftcolumn"><owc:OwR runat="server" OwText="IsDeleted" /></td>
                <td></td>
            </tr><tr>
                <td class="leftcolumn"><owc:OwR runat="server" OwText="IsEnabled" /></td>
                <td></td>
            </tr><tr>
                <td class="leftcolumn"><owc:OwR runat="server" OwText="AllowComment" /></td>
                <td></td>
            </tr><tr>
                <td class="leftcolumn"><owc:OwR runat="server" OwText="DateTimeCreated" /></td>
                <td></td>
            </tr><tr>
                <td class="leftcolumn"><owc:OwR runat="server" OwText="DateTimeEdited" /></td>
                <td></td>
            </tr><tr>
                <td class="leftcolumn"><owc:OwR runat="server" OwText="DateTimeDeleted" /></td>
                <td></td>
            </tr><tr>
                <td class="leftcolumn"><owc:OwR runat="server" OwText="EnableBegin" /></td>
                <td></td>
            </tr><tr>
                <td class="leftcolumn"><owc:OwR runat="server" OwText="EnableEnd" /></td>
                <td></td>
            </tr><tr>
                <td class="leftcolumn"><owc:OwR runat="server" OwText="HomeDisplayBegin" /></td>
                <td></td>
            </tr><tr>
                <td class="leftcolumn"><owc:OwR runat="server" OwText="HomeDisplayEnd" /></td>
                <td></td>
            </tr><tr>
                <td class="leftcolumn"><owc:OwR runat="server" OwText="HotDisplayBegin" /></td>
                <td></td>
            </tr><tr>
                <td class="leftcolumn"><owc:OwR runat="server" OwText="HotDisplayEnd" /></td>
                <td></td>
            </tr><tr>
                <td class="leftcolumn"><owc:OwR runat="server" OwText="CreatingUser" /></td>
                <td></td>
            </tr><tr>
                <td class="leftcolumn"><owc:OwR runat="server" OwText="EditingUser" /></td>
                <td></td>
            </tr><tr>
                <td class="leftcolumn"><owc:OwR runat="server" OwText="DeletingUser" /></td>
                <td></td>
            </tr>
            <tr>
                <td class="leftcolumn"><owc:OwR runat="server" OwText="ImageSourceID" /></td>
                <td></td>
            </tr><tr>
                <td class="leftcolumn"><owc:OwR runat="server" OwText="AuthorID" /></td>
                <td></td>
            </tr>
        </table>
        </fieldset>
    </InsertItemTemplate>
    <EditItemTemplate></EditItemTemplate>    
    </asp:TemplateField>
        <asp:TemplateField ShowHeader="False">
            <EditItemTemplate>
                <fieldset style="position: fixed; bottom: 0px; right: 0px; width: 100%">
                    <legend>
                        <asp:Label ID="Label4" runat="server" EnableViewState="false" Text="<%$ OwR: Action %>" /></legend>
                    </owc:OwButton>
                    <owc:OwButton ID="EditUpdateThenCloseButton" runat="server" CommandName="Update"
                        Text='<%$OwR:Update %>' OnClientClicking="showNotification">
                    </owc:OwButton>
                    &nbsp;
                    <owc:OwConfirmButton ID="EditDeleteButton" runat="server" CausesValidation="True"
                        CommandName="Delete" Text="<%$OwR:Delete %>" SkinID="OwConfirmButton">
                    </owc:OwConfirmButton>
                    &nbsp;<owc:OwButton ID="EditCancelButton" runat="server" CausesValidation="False"
                        CommandName="Cancel" Text="<%$OwR:Cancel %>">
                    </owc:OwButton>
                </fieldset>
            </EditItemTemplate>
            <InsertItemTemplate>
                <fieldset style="position: fixed; bottom: 0px; right: 0px; width: 100%">
                    <legend>
                        <asp:Label ID="Label4" runat="server" EnableViewState="false" Text="<%$ OwR: Action %>" /></legend>
                    <owc:OwButton ID="InsertInsertButton" runat="server" CommandName="Insert" Text="<%$OwR:Insert %>"
                        OnClientClicking="showNotification">
                    </owc:OwButton>
                    &nbsp;<owc:OwButton ID="InsertCancelButton" runat="server" CausesValidation="False"
                        CommandName="Cancel" Text="<%$OwR:Cancel %>">
                    </owc:OwButton>
                </fieldset>
            </InsertItemTemplate>
        </asp:TemplateField>
    </Fields>
</owc:owdetailsview>
<owc:owobjectdatasource id="ImageEditFullOds" runat="server" dataobjecttypename="Micronet.OpenWeb.Entity.OwImagesEntity"
    deletemethod="OwDelete" insertmethod="OwInsert" oldvaluesparameterformatstring="original_{0}"
    selectmethod="OwGetEntity" typename="Micronet.OpenWeb.Com.BLL.OwImagesBLL" updatemethod="OwUpdate">
    <SelectParameters>
        <asp:QueryStringParameter Name="owEntity" QueryStringField="<%$ Ow:OwConstants.QueryString.ID %>" Type="Object" />
    </SelectParameters>
</owc:owobjectdatasource>
